import styled,{createGlobalStyle} from "styled-components";
export const GlobalStyle=createGlobalStyle`
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
html, body {
    background: #f2f3f4;;
}
ol, ul ,li{
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    text-decoration: none;
    color: black;
}
`
export const Wrapper=styled.div`
    width: 500px;
    margin: 10px auto;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #f1f1f1;
    padding: 20px;
`
export const ListWrapper=styled.div`

`
export const ItemWrapper=styled.li`
    margin-top: 5px;
    border-top: 2px solid #f1f1f1;
    &:last-child{
        border-bottom: 2px solid #f1f1f1;
    }
    .ItemContainer{
        position: relative;
    }
`
export const MetaWrapper=styled.div`
    display: flex ;
    font-size: 14px;
    div{
        padding:2px 10px;
    }
    .time{
        position: relative;
        &:before{
        content: '';
        display: block;
        height: 14px;
        width: 1px;
        position: absolute;
        top: 2px;
        transform: translateX(-10px);
        background-color: gray;
        }
    } 
`

export const ContentWrapper=styled.div`
    .content-title{
        height: 24px;
        line-height: 24px;
        padding: 2px 10px;
        text-overflow:ellipsis; 
        overflow:hidden; 
        white-space:nowrap;
        margin-bottom: 5px;
    }
    .content-main{
        padding: 2px 10px;
        height: 120px;
        display: flex;
        .main-article{
            /* background-color: green; */
            flex: 1;
            .article{
                
                font-size: 14px;
                text-overflow: ellipsis;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 8;
                -webkit-box-orient: vertical;
            }       
        }
        .main-img{
            margin-left:10px ;
            width: 120px;
            background-color: orange;
        }

    }
    .content-action{
        li{
            display: flex;
            padding: 2px 10px;
            img{
                display: block;
                width: 16px;
                height: 16px;
            }
            span{
                display: block;
                font-size: 14px;
                padding: 0 5px;
            }
        }
        .action-list{
            float: left;
            flex-basis: 100px;
            display: flex;
            
        }
        .type-list{
            float: right;
            flex-basis: 100px;
            display: flex; 
        }
        &:after{
            content: '';
            display: block;
            clear: both;
        }
    }

`

export const DislikeButtonWrapper=styled.div`
    position: absolute;
    right: 26px;
    top: 0px;
    .dislike{       
        color: #000;
        position: absolute;
        margin-top: 0;
        margin-left: 0;
        width: 21px;
        height: 21px;
        &:before{
            content: '';
            position: absolute;
            top: 10px;
            width: 21px;
            height: 1px;
            background-color: currentColor;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);

        }
        &:after{
            content: '';
            position: absolute;
            top: 10px;
            width: 21px;
            height: 1px;
            background-color: currentColor;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
        }    
    }

`

